package com.nbsaas.boot.common.rest.convert;

import com.nbsaas.boot.common.data.entity.IpVisit;
import com.nbsaas.boot.common.api.domain.request.IpVisitRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 请求对象转换成实体对象
*/

public class IpVisitEntityConvert  implements Converter<IpVisit, IpVisitRequest> {

    @Override
    public IpVisit convert(IpVisitRequest source) {
        IpVisit result = new IpVisit();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

